#include <stdio.h>
#include <string.h>
#include <stdlib.h>

void dump_hex(const unsigned char *p,int len)
{
    int i;
    char buf[128];
    int ret=0;
    for(i=0;i<len;i++){
        ret += sprintf(buf+ret,"%0.2x ",*(p+i));
        if(i%16 == 15 )
        {
            printf("%s\n",buf);
            memset(buf,'\0',ret);
            ret = 0;
        }
    }
    
    if(ret)
        printf("%s\n",buf);
}

int main(void)
{

    char a[]={0x52,0x45,0x35,0x00,0x80,0x19,0x05,0xE5,0x5B,0x3F,0x3E,0x80,0x51,0xC9,0x3F,0x19,0x0D,
0x97,0x40,0x00,0x91,0x4D,0xBE,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x87,0x00,0x00,0xC0,0xE4};
    dump_hex(a, sizeof(a));

    return 0;
}